
function showUser(str)
{
if (str=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  } 
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
	//if(!document.getElementById('na2').checked) {
	//document.getElementById("na2").checked ="checked"
    //}
    }
  }
xmlhttp.open("GET","php8-2csdl-2.php?q="+str,true);
xmlhttp.send();
}
setInterval("showUser()",100);

function dieukhien(str)
 {
 /*if (str=="")
   {
   document.getElementById("txtHint").innerHTML="";
   return;
   } */
if (window.XMLHttpRequest)
   {// code for IE7+, Firefox, Chrome, Opera, Safari
   xmlhttp=new XMLHttpRequest();
   }
 else
   {// code for IE6, IE5
   xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
   }
 xmlhttp.onreadystatechange=function()
   {
   if (xmlhttp.readyState==4 && xmlhttp.status==200)
     {
     document.getElementById("result").innerHTML=xmlhttp.responseText;
     }
   }
 xmlhttp.open("GET","php8-2csdl-1.php?q="+str,true);
 xmlhttp.send();
 }